﻿using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;

namespace MedLink2011.Core
{
    public class ToolTipConverter : IValueConverter
    {


        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            if (value != null)
            {
                var s = value.ToString();
                var block = new TextBlock { Text = s, Margin = new Thickness(3, 3, 3, 3), Opacity = 0.8, MaxWidth = 250, FontSize = 10, TextWrapping = TextWrapping.NoWrap };
               return block;


                            
            }
            return null;
        }

        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            throw new NotImplementedException();
        }

    }
    }